package com.dhcc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dhcc.entity.SysInstitution;
import com.dhcc.entity.SysInstitutionRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysInstitutionMapper extends BaseMapper<SysInstitution> {
    SysInstitution selectInstitutionById(String institutionId);

    List<SysInstitution> selectChildInstitutionList(String institutionId);

    Integer addInstitution(SysInstitution sysInstitution);

    Integer updateInstitution(SysInstitution sysInstitution);

    List<SysInstitutionRole> getAllInstitutionRole();

    Integer deleteInstitution(String institutionId);
}
